package com.ruoyi.internet.service.impl;

import com.ruoyi.common.core.utils.SecurityUtils;
import com.ruoyi.internet.domain.vo.MyPublishVO;
import com.ruoyi.internet.mapper.MyInfoMapper;
import com.ruoyi.internet.service.MyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: cjie
 * @description:
 * @date: 2021/8/25
 */
@Service
public class MyInfoServiceImpl implements MyInfoService {
    @Autowired
    private MyInfoMapper myInfoMapper;

    /**
     * 查询我的发布
     *
     * @param myPublishVO 我的发布视图
     * @return
     */
    @Override
    public List<MyPublishVO> selectMyPublishList(MyPublishVO myPublishVO) {
        myPublishVO.setExpirationUserId(SecurityUtils.getUserId());
        return myInfoMapper.selectMyPublishList(myPublishVO);
    }
}
